import random
import turtle
turtle.colormode(255)
turtle.speed(0)
for i in range(80):
    r=random.randint(0,255)
    g=random.randint(0,255)
    b=random.randint(0,255)
    dis = random.randint(20, 70)
    x = random.randint(-330, 330)
    y = random.randint(-330, 330)
    turtle.up()
    turtle.goto(x, y )
    turtle.down()
    turtle.fillcolor(r,g,b)
    turtle.begin_fill()
    for j in range(4):
        turtle.forward(dis)
        turtle.left(90)
    turtle.end_fill()

turtle.done()